﻿@using BlueLotus7.Eden.Management.DomainScope.Models;
@using BlueLotus7.ArchiveSystem.Common;
@using BlueLotus7.Eden.KB.Models;
@model DomainScopeQueryPageModel
@{
    ViewBag.Title = "Index";
    Layout = BlueLotus7.Eden.Web.Helper.MasterPageUrl;

    DomainScopeTypeListControlModel domainScopeTypeListControlModel = new DomainScopeTypeListControlModel();
    domainScopeTypeListControlModel.HasEmptyItem = true;
}
@section TitleContent{
Domain Scopes
}
@section MainContent{
    <div>
        <h2>Domain Scopes</h2>
        <div id="queryPanel">
            <div class="line">
                <div id="queryPanelDomainScopeTypes" class="criteria">
                    <label>
                        Domain Scope Type:
                    </label>
                    <select id="domainScopeTypeList">
                        <option value="0"></option>
                        <option value="@(((int)DomainScopeType.IM).ToString())">@(DomainScopeType.IM.ToString())
                        </option>
                        <option value="@(((int)DomainScopeType.SociatySite).ToString())">@(DomainScopeType.SociatySite.ToString())
                        </option>
                    </select>
                </div>
                <div id="queryPanelDomainScopeKeyword" class="criteria">
                    <label>
                        Keywords:
                    </label>
                    <input type="text" id="domainScopeKeyword" />
                </div>
                <a class="button btn-query">Query</a>
            </div>
        </div>
        <div id="queryResult">
        </div>
    </div>
}
@section ResourceReferences{
    <script type="text/javascript">
    var gridContainer = undefined;
    var queryPanel = undefined;

    $(document).ready(function () {
        queryPanel = $("#queryPanel");
        gridContainer = $("#queryResult");

        $("#queryPanel .btn-query").bind("click", {}, function (e) {
            queryDomainScopeByCriterias(queryPanel);
        });
    });
    </script>
}
@section SideNavigator{
}
